POV-Ray : Newsgroups : povray.general : Collision detection: will this work? : Collision detection: will this work? Server Time
9 Aug 2024 01:23:31 EDT (-0400)
  Collision detection: will this work?  
From: Greg M  Johnson
Date: 6 Sep 2000 11:21:46
Message: <39B65FC4.4A8EB992@my-dejanews.com>
Would this work? I am afraid that it will not because povray (megapov),
I fear, is very lazy about giving true information in the min &
max_extent functions....



#declare CollisionVolume=
    intersection{
        object{Object_A}
        object{Object_B}
    }

#declare DiagCollVolume=
    <0,0,0>+max_extent(CollisionVolume)-min_extent(CollisionVolume);

#if(vlength(DiagCollVolume >0)
    BOOM!
#end


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.